#ifndef PRESSBUTTONDIALOG_H
#define PRESSBUTTONDIALOG_H

#include <QtGui/QDialog>

namespace Ui {
    class PressButtonDialog;
}

class PressButtonDialog : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(PressButtonDialog)
public:
    explicit PressButtonDialog(QWidget *parent = 0);
    virtual ~PressButtonDialog();

   // getters
    QString getKey();

protected:
    virtual void changeEvent(QEvent *e);

     // Reimplementation
    void keyPressEvent ( QKeyEvent * event );
    void keyReleaseEvent ( QKeyEvent * event );

private:
    Ui::PressButtonDialog *m_ui;

    QString key;
};

#endif // PRESSBUTTONDIALOG_H
